package com.doudou.collection.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.doudou.collection.orm.entity.Permission;
import com.doudou.collection.orm.vo.PermissionSimpleVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * className: PermissionMapper<br>
 * description: TODO<br>
 * author: 李浩文<br>
 * date: 2023/6/20 20:49<br>
 * version: 1.0<br>
 */
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 通过角色id查询权限列表
     */
    List<PermissionSimpleVO> getPermissionByRoleId(Integer id);
}
